package com.genesis.mall.mapper;

import com.genesis.mall.entity.UmsAdmin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 后台用户表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2022-08-01
 */
@Mapper
public interface UmsAdminMapper extends BaseMapper<UmsAdmin> {
    @Select("select * from ums_admin where username = #{username}")
    UmsAdmin selectUserByUserName(String username);
    @Select("select username from ums_admin ")
    List<String> getAdmin();
}
